// const fn = () => console.log(1); 
// console.log(fn()); 
// console.log(2);

const fn1 = Promise.resolve(() => {
    console.log(2);
})

console.log(fn1);

const fn2 = new Promise((resolve, reject) => {
    console.log(3);
    resolve(() => {
        console.log(2);
    });
})

console.log(fn2);

fn1.then((a)=>console.log(a))